<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'comercio.label', default: 'Comercio')}" />
		<title><g:message code="default.create.label" args="[entityName]" /></title>
	</head>
	<body>
		<div id="create-comercio" class="content scaffold-create" role="main">
			<div class="panel panel-primary">
				<div class="panel-heading">
					<h3 class="panel-title"><i class="fa fa-long-arrow-right"></i> <g:message code="default.create.label" args="[entityName]" /></h3>
				</div>
				<div class="panel-body">
					<div class="row">
						<div class="col-lg-12">
							<g:if test="${flash.message}">
							<div class="message" role="status">${flash.message}</div>
							</g:if>
							<g:hasErrors bean="${comercioInstance}">
							<ul class="errors" role="alert">
								<g:eachError bean="${comercioInstance}" var="error">
								<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
								</g:eachError>
							</ul>
							</g:hasErrors>
							<g:form url="[resource:comercioInstance, action:'geolocalize']" >
							<%--<g:form url="[resource:comercioInstance, action:'save']" >
								--%><fieldset class="form">
									<g:render template="form"/>
								</fieldset>
								<fieldset class="buttons">
									<div class="col-lg-2">
									</div>
									<div class="col-lg-3">
										<g:submitButton name="create" class="save btn btn-info" value="${message(code: 'default.button.create.label', default: 'Create')}" />
									</div>									
									<div class="col-lg-3">
										<a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a>							
									</div>
									<div class="col-lg-3">							
										<g:link class="list" action="index"><g:message code="default.list.label" args="[entityName]" /></g:link>
									</div>
									<div class="col-lg-1">
									</div>									
								</fieldset>
							</g:form>
						</div>
					</div>
				</div>
			</div>		
		</div>						
	</body>
</html>

	</body>
</html>
